#pragma once

class RectSelect;

class MouseChecker
{
public:
	MouseChecker();
	~MouseChecker();

	void			Clear();

	void			AddSelectCheck(RectSelect* pRect);
	void			ReleaseSelectCheck(RectSelect* pRect);
	void			CheckSelectRect(int nPosX, int nPosY);
	RectSelect*		MouseDownSelectRect();
	RectSelect*		MouseUpSelectRect();

	RectSelect*		GetCurSelectRect()	{ return m_pCurSelect; }
	void			SetCheck(BOOL bSet)	{ m_bDisableCheck = bSet; }

private:
	BOOL						m_bDisableCheck;
	std::vector<RectSelect* >	m_listSelect;
	RectSelect*					m_pCurSelect;
	RectSelect*					m_pMouseDown;
};